package com.taotao.job.rpc.server.example;

import com.taotao.job.rpc.server.TaotaoRpcService;
import com.taotao.job.rpc.server.example.facade.ShopService;

/**
 *
 * @author fanbeibei
 * @date 2020/10/31 0:18
 */
@TaotaoRpcService(ifaceClass= ShopService.class)
public class ShopServiceImpl implements ShopService {
    int InventoryCount = 100;

    @Override
    public int reduceInventoryCount(int c) {
        InventoryCount -= c;
        return InventoryCount;
    }
}
